const path = require("path")

module.exports = {
    mode: 'development',
    watch: true,
    resolve: {
        alias: {
            "@": path.resolve(__dirname, 'src')
        },
        extensions: ['.js', '.jsx', '.css']
    },
    module: {
        rules: [
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                use: [{
                    loader: 'babel-loader',
                    options: {
                        presets: ['@babel/preset-react'],
                    }
                }]
            }
        ]
    }
}